package com.freedom.common.framework.service;

import com.freedom.common.core.base.BaseBO;

import java.util.Collection;

public interface BaseRepository<T extends BaseBO> {

    default void save(T entity) {}

    default void saveBatch(Collection<T> entitys) {}

    default void modifyById(T entity) {}

    default void modifyBatchById(Collection<T> entitys) {}

    default void removeById(Integer id) {}

    default void removeByIds(Collection<Integer> ids) {}

    default T findById(Integer id) {
        return null;
    }
}
